﻿<Window x:Class="TestWPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:math="http://mathview.codeplex.com"
        Title="mathview Test" Height="350" Width="525">
    <Grid Margin="20">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <TextBlock Grid.Row="0" Grid.Column="0" Text="LaTeX text:" FontWeight="SemiBold" VerticalAlignment="Center" Margin="5" />
        <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Text}" Margin="5" />

        <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Content="Parse" Command="{Binding Path=ParseCommand}" Padding="20,2" HorizontalAlignment="Center" Margin="5" />
            <CheckBox Content="Italic Letters" IsChecked="{Binding Path=ItalicLetters, ElementName=Math}" VerticalAlignment="Center" />
        </StackPanel>

        <Viewbox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
            <math:MathView Margin="10" Source="{Binding Expression}" Name="Math" />
        </Viewbox>

        <!--<Viewbox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
            <StackPanel Orientation="Vertical">
                <TextBlock Text="&#x239B;" />
                <TextBlock Text="&#x239C;" />
                <TextBlock Text="&#x239D;" />
            </StackPanel>
        </Viewbox>-->
    </Grid>
</Window>
